package com.prs.crm.dao.cdxh;

import java.util.List;

import com.prs.crm.dao.BaseDao;
import com.prs.crm.domain.cdxh.SaleOrder;
import com.prs.crm.domain.cdxh.SaleOrderDetail;
import com.prs.crm.domain.cdxh.cd_Product;

public interface SaleOrderDao extends BaseDao<SaleOrder> {
	
	SaleOrder  getSaleOrder(java.io.Serializable id);
	/**
	 *  根据产品编号和对象的ID号查找
	 * @param productCode
	 * @param aleOrder
	 * @return
	 */
	SaleOrderDetail getSaleOrderDetail(String productCode,SaleOrder aleOrder);
	
	void saveOrudetail(SaleOrderDetail saleOrderDetail);
	
	void saveOrudsale(SaleOrder saleOrder);
	
	SaleOrder getSaleOrder(String orders);
	
	/**
	 * 销售主菜单
	 * @param so
	 */
	void removeSaleOrder(SaleOrder so);
	/**
	 * 销售菜单明细
	 * @param sod
	 */
	void removeSaleOrderDetail(SaleOrderDetail sod);
	
	List<SaleOrderDetail>  getSaleOrderDetails(SaleOrder saleOrders);
	/**
	 * 根据产品编号查找
	 * @param productcode
	 * @return
	 */
	SaleOrderDetail getSaleOrderDetail(String productcode);
/**
 * 根据产品查找
 * @param product
 * @return
 */
	SaleOrderDetail getSaleOrderDetailByProduct(cd_Product product);
}
